package cn.zzuzhm.spring.aotuwire;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AotuwireTest {

	public static void main(String[] args) {
		
		@SuppressWarnings("resource")
		ApplicationContext applicationContext = 
				new ClassPathXmlApplicationContext("autowire.xml");
		
		Person person = applicationContext.getBean(Person.class);
		System.out.println(person);

	}

}
